﻿#ifndef QTRENDER_H
#define QTRENDER_H

#include "Render.h"

class QtRender:public Render
{
    Q_OBJECT
public:
    explicit QtRender(RENDER_TYPE Type,int Width,int Height);
    int Draw(Frame *frame) override;
    void ScalerFrame(const Frame *Frame,AVPixelFormat Pixel);           //对帧进行裁剪
    ~QtRender();

protected:
    void paintEvent(QPaintEvent *event) override;       //绘制事件
    void resizeEvent(QResizeEvent *event) override;     //大小缩放事件
};

#endif // QTRENDER_H
